package com.qiyuexinxi.chat.service;

import com.alibaba.fastjson.JSONObject;
import com.qiyuexinxi.chat.dto.request.GetUserInfoRequest;
import com.qiyuexinxi.chat.dto.request.UpdateUserRequest;
import com.qiyuexinxi.chat.dto.request.UserAddRequest;
import com.qiyuexinxi.chat.dto.response.GetUserInfoResponse;
import com.qiyuexinxi.chat.dto.vo.UserInfoVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author yangxingyu
 * @date 2020/2/26
 * @description
 */

public interface UserService {

    boolean addUser(UserAddRequest userAddRequest);

    JSONObject fileUpload(Integer userId, Integer pictureType, MultipartFile pictureImg);

    List<GetUserInfoResponse> getUserInfo(GetUserInfoRequest getUserInfoRequest);

    boolean updateUserInfo(UpdateUserRequest updateUserRequest);

    GetUserInfoResponse getUserInfoVo(Integer userId);

    UserInfoVo getUserBaseInfoVo(Integer user);



}
